<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>editor dbRicette Index</title>
</head>
<body>
<table>
	<thead>
		<tr><th>Aziende<br/><br/></th></tr>
	</thead>
	<a href="${f:url('nuovo')}">Inserisci Nuovo <br/><br/><br/></a>
	<tbody>
	<div><a href="/" style="text-decoration: none;"><input value="Torna alla Home" type="button"></a><br/><br/></div>
	<div><a href="/aziende" style="text-decoration: none;"><input value="Vai alle aziende" type="button"></a><br/><br/></div>	
		<c:forEach var="e" items="${aziendaList}">
		<tr>
			<td>${f:h(e.nome)}</td>
			<td><a href="/creazione/dbAziende/Modifica?${f:h(e.key)}">Modifica</a></td>
			<td><a href="/creazione/dbAziende/Cancella?${f:h(e.key)}" onclick="return confirm('Vuoi cancellare questa Azienda?')">Cancella</a></td>
			<br/>
			
		</tr>
		</c:forEach>
		
	</tbody>
</table>
</body>
</html>